// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Author: wsfuyibing <682805@qq.com>
// Date: 2024-12-05

package sr

import (
	"gitee.com/go-libs/runtime"
	"gitee.com/gomq/sr/endpoint"
	"gitee.com/gomq/sr/filter"
	"gitee.com/gomq/sr/message"
	"gitee.com/gomq/sr/name"
	"gitee.com/gomq/sr/scheduler"
	"gitee.com/gomq/sr/supporter"
)

var (
	NewEndpoint          = endpoint.NewEndpoint
	NewError             = runtime.NewError
	NewFilter            = filter.NewFilter
	NewHash              = message.NewHash
	NewMessage           = message.NewMessage
	NewMessageWithHeader = message.NewMessageWithHeader
	NewNotification      = message.NewNotification
	NewPayload           = message.NewPayload
	NewPayloadWithHeader = message.NewPayloadWithHeader
	NewResponse          = scheduler.NewResponse
	NewSubscription      = endpoint.NewSubscription

	SupporterSingleton = supporter.Singleton
)

var (
	RestoreFailedNotificationTag  = name.RestoreFailedNotificationTag
	RestoreSucceedNotificationTag = name.RestoreSucceedNotificationTag
	RestoreNotificationTopic      = name.RestoreNotificationTopic
	ReadFailedNotificationTag     = name.ReadFailedNotificationTag
	ReadSucceedNotificationTag    = name.ReadSucceedNotificationTag
	ReadNotificationTopic         = name.ReadNotificationTopic
)
